{extends file = "assets::smarty-templates::EntityView"|ToPath}

{block name="title"}Usuarios / Crear{/block}

{block name="page-id"}usuarios-create-page{/block}

{block name="content"}
<div>
    <form action="{$action}" method="post">
        <fieldset data-role="fieldcontain">
            <label for="userName">Nombre de usuario</label>
            <input type="text" name="userName" id="userName"/>
            <div data-role="controlgroup" data-type="horizontal">
                <input id="user-check-name-button"
                       type="button" 
                       id="checkUser" 
                       data-url="{$usernameCheck}" 
                       value="Verificar nombre"
                       data-inline="true"
                       data-mini="true"/>
            </div>

            <label for="newPass">Nueva Clave</label>
            <input type="password" name="newPass" id="newPass"/>

            <label for="newPassConfirm">Confirmar Nueva Clave</label>
            <input type="password" name="newPassConfirm" id="newPassConfirm"/>

            <a href="#" data-role="button" data-rel= "back">Cancelar</a>
            <button type="submit">Guardar</button>
        </fieldset>
    </form>
</div>
{/block}